<template>
<div>
    <div class="in">
        <div class="w1">
            <div class="w1_1">
                <span>v2.6</span>
                <span v-show="state === true" @click="Switching" style="color: #999">展开<i class="el-icon-arrow-down"></i></span>
                <span v-show="state === false" @click="Switching" style="color: #999">收起<i class="el-icon-arrow-up"></i></span>
            </div>
            <div class="ww">
                <div class="w2_2" v-for="i in num" :key="i">
                    <div class="w2_2_1">
                        <img src="https://upload-bbs.mihoyo.com/upload/2021/07/13/f2b3b66e974c175c2e0a6cef602f2e8c_5966158557546691737.png?x-oss-process=image/resize,s_150/quality,q_80/auto-orient,0/interlace,1/format,jpg" alt="">
                        <div class="w2_2_2">
                            <span>神里绫华</span>
                            <span>i哦v尼斯哦v覅u对比u发布丢包VS v吧·i发的手臂u十点半v发电设备v覅v吧fife切勿红日服务·</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="in2">
        <div class="w1">
            <div class="w1_1">
                <span>萌新指南</span>
            </div>
            <div class="ww">
                <div class="w2_2" v-for="i in 2" :key="i">
                    <div class="w2_2_1">
                        <img src="https://upload-bbs.mihoyo.com/upload/2021/07/13/f2b3b66e974c175c2e0a6cef602f2e8c_5966158557546691737.png?x-oss-process=image/resize,s_150/quality,q_80/auto-orient,0/interlace,1/format,jpg" alt="">
                        <div class="w2_2_2">
                            <span>神里绫华</span>
                            <span>i哦v尼斯哦v覅u对比u发布丢包VS v吧·i发的手臂u十点半v发电设备v覅v吧fife切勿红日服务·</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="in3">
        <div class="w1">
            <div class="w1_1">
                <span>深境螺旋</span>
            </div>
            <div class="ww">
                <div class="w2_2" v-for="i in 1" :key="i">
                    <div class="w2_2_1">
                        <img src="https://upload-bbs.mihoyo.com/upload/2021/07/13/f2b3b66e974c175c2e0a6cef602f2e8c_5966158557546691737.png?x-oss-process=image/resize,s_150/quality,q_80/auto-orient,0/interlace,1/format,jpg" alt="">
                        <div class="w2_2_2">
                            <span>神里绫华</span>
                            <span>i哦v尼斯哦v覅u对比u发布丢包VS v吧·i发的手臂u十点半v发电设备v覅v吧fife切勿红日服务·</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="in4">
        <div class="w1">
            <div class="w1_1">
                <span>配装相关</span>
            </div>
            <div class="ww">
                <div class="w2_2" v-for="i in 2" :key="i">
                    <div class="w2_2_1">
                        <img src="https://upload-bbs.mihoyo.com/upload/2021/07/13/f2b3b66e974c175c2e0a6cef602f2e8c_5966158557546691737.png?x-oss-process=image/resize,s_150/quality,q_80/auto-orient,0/interlace,1/format,jpg" alt="">
                        <div class="w2_2_2">
                            <span>神里绫华</span>
                            <span>i哦v尼斯哦v覅u对比u发布丢包VS v吧·i发的手臂u十点半v发电设备v覅v吧fife切勿红日服务·</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</template>

<script>
export default {
    data() {
        return {
            state: true,
            num: 3
        }
    },
    methods: {
        Switching() {
            this.state = !this.state
            if(this.state === true) {
                this.num = 3
            }else {
                this.num = 5
            }
        }
    }
}
</script>

<style lang="less" scoped>
    .in {
        // border: 1px solid red;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        background-color: white;
        border-radius: 5px;
        // padding-bottom: 80px;
        width: 100%;
        padding: 10px;
        .w1 {
            // border: 1px solid red;
            padding-bottom: 30px;
            .w1_1 {
                width: 98%;
                height: 40px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                // border: 1px solid red;
                span {
                    padding: 10px;
                    cursor: pointer;
                }
                // span:nth-last-child(1) {
                //     cursor: pointer;
                // }
            }
            .ww {
                // border: 1px solid red;
                // width: 80%;
                width: 990px;
                // padding: 10px;
                margin-top: 10px;
                display: flex;
                // justify-content: center;
                flex-wrap: wrap;
                cursor: pointer;
                .w2_2:hover {
                    border: 1px solid #00c3ff;
                }
                .w2_2 {
                    border: 1px solid #ebebeb;
                    border-radius: 5px;
                    // display: flex;
                    // flex-wrap: wrap;
                    // padding: 10px;
                    margin: 10px;
                    width: 300px;
                    .w2_2_1 {
                        display: flex;
                        align-items: center;
                        img {
                            margin-left: 10px;
                            max-width: 60px;
                            max-height: 60px;
                            border-radius: 6px;
                            border: 1px solid #ebebeb;
                        }
                        .w2_2_2 {
                            // border: 1px solid red;
                            display: flex;
                            flex-wrap: wrap;
                            font-size: 15px;
                            padding: 10px;
                            span:nth-last-child(1) {
                                color: rgb(105, 105, 105);
                                display: -webkit-box;
                                -webkit-box-orient: vertical;
                                -webkit-line-clamp: 2;
                                overflow: hidden;
                            }
                        }
                    }
                }
            }
        }
    }
    .in2 {
        // border: 1px solid red;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        background-color: white;
        border-radius: 5px;
        margin-top: 20px;
        // padding-bottom: 80px;
        width: 100%;
        padding: 10px;
    }
    .in3 {
        // border: 1px solid red;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        background-color: white;
        border-radius: 5px;
        margin-top: 20px;
        // padding-bottom: 80px;
        width: 100%;
        padding: 10px;
    }
    .in4 {
        // border: 1px solid red;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        background-color: white;
        border-radius: 5px;
        margin-top: 20px;
        // padding-bottom: 80px;
        width: 100%;
        padding: 10px;
    }
</style>